Add taskbar placement controls and adaptive provider usage rows - #69
Open
Kuu44 wants to merge 2 commits into
Open
Add taskbar placement controls and adaptive provider usage rows#69Kuu44 wants to merge 2 commits into
Kuu44 wants to merge 2 commits into
Conversation
Add persistent left/right taskbar anchoring and direct monitor selection, including localized menu labels and drag behavior for embedded and fallback modes. Classify Codex rate-limit windows by duration so weekly-only quotas render on the weekly row, hide unavailable Codex bars, and point Antigravity reauthentication to the agy CLI.
There was a problem hiding this comment.
Pull request overview
This PR enhances the Windows taskbar widget’s placement UX by adding persistent left/right anchoring and an explicit monitor selector, and improves Codex quota-window mapping so the UI reflects whichever windows the API actually returns. It also updates Antigravity re-auth guidance and localizes the new UI labels across all supported languages.
Changes:
- Added Settings → Taskbar Side (Left/Right) with persisted
taskbar_sideand updated positioning/drag math for both embedded and fallback popup modes. - Added Settings → Monitor (only when multiple taskbars are detected) to switch taskbar hosting via existing attachment logic, with display-number labeling when available.
- Improved Codex window classification based on reported duration, hid unavailable Codex rows, added a regression test, and updated Antigravity auth recovery guidance + docs/localizations.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| working.md | Adds an internal handoff/scratchpad document (should likely not ship in-repo). |
| src/window.rs | Implements taskbar-side anchoring, monitor submenu wiring, and hides unavailable Codex rows during rendering. |
| src/poller.rs | Classifies Codex windows by duration fields and adds a regression test for weekly-only responses. |
| src/native_interop.rs | Adds monitor display-number inference via MonitorFromPoint + GetMonitorInfoW. |
| src/localization/mod.rs | Extends Strings with taskbar-side and monitor labels. |
| src/localization/english.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/dutch.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/spanish.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/french.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/german.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/japanese.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/korean.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/traditional_chinese.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/simplified_chinese.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/russian.rs | Adds new strings + updates Antigravity recovery message. |
| src/localization/portuguese_brazil.rs | Adds new strings + updates Antigravity recovery message. |
| README.md | Documents monitor selection and taskbar-side anchoring; updates Antigravity sign-in guidance. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+8
| # Working State — Taskbar Side + Monitor Selection | ||
|
|
||
| **Session date:** 2026-07-28 | ||
| **Repo:** `F:\Projects\Coding Projects\Claude-Code-Usage-Monitor` | ||
| **Branch:** `main` — HEAD is `7b108da v1.4.9` | ||
| **Status:** Two features implemented, compile-verified, **not committed**. A test exe was built for the user, who is currently testing it. | ||
|
|
||
| This file is a handoff for another agent. It describes what was asked, what was changed, how it was verified, the environment landmines on this machine, and what is left to do. |
Comment on lines
683
to
+695
| if let Some(codex) = data.codex.as_ref() { | ||
| state.codex_session_text = poller::format_line(&codex.session, strings); | ||
| state.codex_weekly_text = poller::format_line(&codex.weekly, strings); | ||
| state.codex_session_text = | ||
| if codex.session.resets_at.is_none() && codex.session.percentage == 0.0 { | ||
| String::new() | ||
| } else { | ||
| poller::format_line(&codex.session, strings) | ||
| }; | ||
| state.codex_weekly_text = | ||
| if codex.weekly.resets_at.is_none() && codex.weekly.percentage == 0.0 { | ||
| String::new() | ||
| } else { | ||
| poller::format_line(&codex.weekly, strings) | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves taskbar placement controls and makes provider usage indicators accurately reflect whichever quota windows are currently available.
What changed
Taskbar placement
Codex usage windows
0%.Antigravity authentication
agyand sign in from a terminal.Documentation and localization
Issues fixed
0%.Verification
cargo fmt -- --checkCompatibility notes